import Vue from 'vue'
import Vuex from 'vuex'

import actions from '@/store/actions'
import mutations from '@/store/mutations'
import getters from '@/store/getters'
import moduleA from '@/store/modules/moduleA'

Vue.use(Vuex)

const state = {
  msg: '你好啊',
  count: 1000,
  info: {
    name: 'shixiaobai',
    heigt: 187,
    age: 15
  }

}

const store = new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
    moduleA

  }

})


export default store